﻿using System;
using System.Windows.Forms;

namespace EyFramework.Common
{
    public interface IMsgUtil
    {
        void ShowTips(string pMsg);

        void ShowWarning(string pMsg);

        void ShowError(string pMsg);

        DialogResult ShowYesNoAndTips(string pMsg);

        DialogResult ShowYesNoAndWarning(string pMsg);

        DialogResult ShowYesNoAndWarning(Form pForm, string pMsg);

        DialogResult ShowYesNoAndError(string pMsg);

        DialogResult ShowYesNoCancelAndTips(string pMsg);

        DialogResult ConfirmYesNo(string pMsg);

        DialogResult ConfirmYesNoCancel(string pMsg);

        void ShowException(Exception ex);

        #region 显示异步通知,仅Dev版本实现了改接口

        void ShowInfoNotice(Form owner, string pMsg, string pCaption = "");

        void ShowWarningNotice(Form owner, string pMsg, string pCaption = "");

        void ShowErrorNotice(Form owner, string pMsg, string pCaption = "");

        #endregion 显示异步通知,仅Dev版本实现了改接口
    }
}